package com.ouc.yyi.springcloudlbc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: yyi
 * @date: 2022/8/24 16:06
 * @version: 1.0
 **/

@RestController
public class LBController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/lb")
    public String String () {
        System.err.println("当前应用的端口号:" + port);
        return port;
    }

}
